from shaoshi2 import mySum


class JiSuanQ():
    #属性
    size=20*20
    countkey=30
    isYinYue=False
    _name='jisuanqi'


    #行为
    def c_sum(self,a,b):
        try:
            print(self.size)
            c= a+b
        except Exception:
            print(f'发生了异常{Exception}')
        else:
            print('没发生异常')
            return c
        finally:
            print('运算结束，不知道有没有异常')

    def c_jian(self,a,b):
        return a-b
class JiSuanQ2(JiSuanQ):
    def c_mi(self):
        print('自己')
    def c_jian(self,a,b):
        print('继承')
        return a+b




if __name__ == '__main__':
    myJSQ=JiSuanQ()
    myJSQ.c_sum(10,'1')
    myJSQ.c_jian(10,1)
    # my2=JiSuanQ2()
    # my2.c_mi()
    # my2.c_jian(2,3)























































































